home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 July: Mac OS SDK / Dev.CD Jul 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Interfaces / AIncludes / ConnectionTools.a < prev    next >
Encoding:
Text File  |  1996-01-24  |  4.0 KB  |  138 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        ConnectionTools.a
  3. ;
  4. ;    Contains:    Communications Toolbox Connection Tools Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Package:    Universal Interfaces 2.2 in “MPW” on ETO #20
  8. ;
  9. ;    Copyright:    © 1984-1995 by Apple Computer, Inc.
  10. ;                All rights reserved.
  11. ;
  12. ;    Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13. ;                stack.  Include the file and version information (from above)
  14. ;                in the problem description and send to:
  15. ;                    Internet:    apple.bugs@applelink.apple.com
  16. ;                    AppleLink:    APPLE.BUGS
  17. ;
  18. ;
  19.  
  20.     IF &TYPE('__CONNECTIONTOOLS__') = 'UNDEFINED' THEN
  21. __CONNECTIONTOOLS__ SET 1
  22.  
  23.  
  24.     IF &TYPE('__WINDOWS__') = 'UNDEFINED' THEN
  25.     include 'Windows.a'
  26.     ENDIF
  27. ;        include 'Types.a'                                            ;
  28. ;            include 'ConditionalMacros.a'                            ;
  29. ;        include 'Memory.a'                                            ;
  30. ;            include 'MixedMode.a'                                    ;
  31. ;        include 'Quickdraw.a'                                        ;
  32. ;            include 'QuickdrawText.a'                                ;
  33. ;        include 'Events.a'                                            ;
  34. ;            include 'OSUtils.a'                                    ;
  35. ;        include 'Controls.a'                                        ;
  36. ;            include 'Menus.a'                                        ;
  37.  
  38.     IF &TYPE('__DIALOGS__') = 'UNDEFINED' THEN
  39.     include 'Dialogs.a'
  40.     ENDIF
  41. ;        include 'Errors.a'                                            ;
  42. ;        include 'TextEdit.a'                                        ;
  43.  
  44.     IF &TYPE('__CONNECTIONS__') = 'UNDEFINED' THEN
  45.     include 'Connections.a'
  46.     ENDIF
  47. ;        include 'CTBUtilities.a'                                    ;
  48. ;            include 'StandardFile.a'                                ;
  49. ;                include 'Files.a'                                    ;
  50. ;                    include 'Finder.a'                                ;
  51. ;            include 'AppleTalk.a'                                    ;
  52.  
  53. ; messages for DefProc 
  54. cmInitMsg                        EQU        0
  55. cmDisposeMsg                    EQU        1
  56. cmSuspendMsg                    EQU        2
  57. cmResumeMsg                        EQU        3
  58. cmMenuMsg                        EQU        4
  59. cmEventMsg                        EQU        5
  60. cmActivateMsg                    EQU        6
  61. cmDeactivateMsg                    EQU        7
  62. cmIdleMsg                        EQU        50
  63. cmResetMsg                        EQU        51
  64. cmAbortMsg                        EQU        52
  65. cmReadMsg                        EQU        100
  66. cmWriteMsg                        EQU        101
  67. cmStatusMsg                        EQU        102
  68. cmListenMsg                        EQU        103
  69. cmAcceptMsg                        EQU        104
  70. cmCloseMsg                        EQU        105
  71. cmOpenMsg                        EQU        106
  72. cmBreakMsg                        EQU        107
  73. cmIOKillMsg                        EQU        108
  74. cmEnvironsMsg                    EQU        109
  75. ; new connection tool messages for ctb 1.1 
  76. cmNewIOPBMsg                    EQU        110
  77. cmDisposeIOPBMsg                EQU        111
  78. cmGetErrorStringMsg                EQU        112
  79. cmPBReadMsg                        EQU        113
  80. cmPBWriteMsg                    EQU        114
  81. cmPBIOKillMsg                    EQU        115
  82. ;    messages for validate DefProc    
  83. cmValidateMsg                    EQU        0
  84. cmDefaultMsg                    EQU        1
  85. ;    messages for Setup DefProc    
  86. cmSpreflightMsg                    EQU        0
  87. cmSsetupMsg                        EQU        1
  88. cmSitemMsg                        EQU        2
  89. cmSfilterMsg                    EQU        3
  90. cmScleanupMsg                    EQU        4
  91. ;    messages for scripting defProc    
  92. cmMgetMsg                        EQU        0
  93. cmMsetMsg                        EQU        1
  94. ;    messages for localization defProc    
  95. cmL2English                        EQU        0
  96. cmL2Intl                        EQU        1
  97.  
  98. ; private data constants 
  99. cdefType                        EQU        'cdef'                ; main connection definition procedure 
  100. cvalType                        EQU        'cval'                ; validation definition procedure 
  101. csetType                        EQU        'cset'                ; connection setup definition procedure 
  102. clocType                        EQU        'cloc'                ; connection configuration localization defProc 
  103. cscrType                        EQU        'cscr'                ; connection scripting defProc interfaces 
  104. cbndType                        EQU        'cbnd'                ; bundle type for connection 
  105. cverType                        EQU        'vers'
  106.  
  107. CMDataBuffer             RECORD    0
  108. thePtr                     ds.l   1        ; offset: $0 (0)
  109. count                     ds.l   1        ; offset: $4 (4)
  110. channel                     ds.w   1        ; offset: $8 (8)
  111. flags                     ds.w   1        ; offset: $A (10)
  112. sizeof                     EQU *            ; size:   $C (12)
  113.                         ENDR
  114.  
  115. ; typedef struct CMDataBuffer  CMDataBuffer
  116. ; typedef CMDataBuffer         *CMDataBufferPtr
  117. CMCompletorRecord         RECORD    0
  118. async                     ds.b   1        ; offset: $0 (0)
  119. filler                     ds.b   1        ; offset: $1 (1)
  120. completionRoutine         ds.l   1        ; offset: $2 (2)
  121. sizeof                     EQU *            ; size:   $6 (6)
  122.                         ENDR
  123.  
  124. ; typedef struct CMCompletorRecord  CMCompletorRecord
  125. ; typedef CMCompletorRecord  *CMCompletorPtr
  126. ;    Private Data Structure    
  127. CMSetupStruct             RECORD    0
  128. theDialog                 ds.l   1        ; offset: $0 (0)
  129. count                     ds.w   1        ; offset: $4 (4)
  130. theConfig                 ds.l   1        ; offset: $6 (6)
  131. procID                     ds.w   1        ; offset: $A (10)        ; procID of the tool    
  132. sizeof                     EQU *            ; size:   $C (12)
  133.                         ENDR
  134.  
  135. ; typedef struct CMSetupStruct  CMSetupStruct
  136. ; typedef CMSetupStruct     *CMSetupPtr
  137.     ENDIF ; __CONNECTIONTOOLS__
  138.